<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script setup lang="ts">
// 使用 Composition API setup 语法糖
import { provide, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { getAPI } from './utils/axios-utils'

import {DataApi} from "@/api-services/apis/data-api"

onMounted(async() => {
 await getAPI(DataApi).apiDataIndustryGet().then((res) => {
    console.log(res.data.data)
  })
})

const router = useRouter()

// 全局提供路由实例
provide('router', router)
</script>

<style lang="scss">
@import "gxrcw-ui/style.css";
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
</style> 